#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time      :2022/4/12 10:17
# @Author    :cjw
import logging


class Calculator:
	def add(self, a, b):
		if a > 99 or a < -99 or b > 99 or b < -99:
			logging.info('请输入范围为[-99, 99]的整数或浮点数')
			return '参数大小超出范围'

		return a + b

	def div(self, a, b):
		if a > 99 or a < -99 or b > 99 or b < -99:
			logging.info('请输入范围为[-99, 99] 的整数或浮点数')
			return '参数大小超出范围'

		return a / b


if __name__ == '__main__':
	calc = Calculator()
	# print(calc.add('1', '2'))
	print(calc.div(' ', 0))
